package org.example.myleet.p726;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("H2O".equals(solution.countOfAtoms("H2O")));
        Assert.isTrue("H2MgO2".equals(solution.countOfAtoms("Mg(OH)2")));
        Assert.isTrue("K4N2O14S4".equals(solution.countOfAtoms("K4(ON(SO3)2)2")));
        Assert.isTrue("K4N2O126S4".equals(solution.countOfAtoms("K4(ON(SO31)2)2")));
    }
}
